package com.example.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

//采购表
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("purchase_order")
public class CgOrder {
// '每个采购申请的唯一标识，按规则生成'
@TableId(value = "id",type = IdType.AUTO)
private Integer id;
//'采购物品名称'
@TableField(value = "pro_name")
private String proName;
//'供应商'
@TableField(value = "supplier")
private String supplier;
//'采购数量'
@TableField(value = "quantity")
private Integer quantity;
//'物品单价'
@TableField(value = "price")
private Double price;
//'高管审核，待审核，已通过，已拒绝'
@TableField(value = "review")
private String review;
//'财务是否拨款，已拨款，不拨款'
@TableField(value = "allocation")
private String allocation;
//'综合部门的是否到货，已购买，未购买'
@TableField(value = "delivered")
private String delivered;
//创建该客户记录的人员id
@TableField(fill = FieldFill.INSERT)
private Integer createBy;
//创建该客户记录的时间
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createTime;
//最后修改该客户记录的人员id
@TableField(fill = FieldFill.INSERT_UPDATE)
private Integer updateBy;
//最后修改该客户记录的时间
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updateTime;
//'员工申请采购理由'
@TableField(value = "renSona")
private String renSona;
//'高管审核理由'
@TableField(value = "renSonb")
private String renSonb;
//'财务审核理由'
@TableField(value = "renSonc")
private String renSonc;
//'综合部审核理由'
@TableField(value = "renSond")
private String renSond;
//'是否删除'
@TableLogic
private Integer deleted;
//'总价'
@TableField(value = "total")
private Double total;

}
